<div class="blade-content ng-scope" id="blade-content">
  <div class="blade-inner">
    <div class="inner-block">
      <form name="form" class="form" (submit)="onCreate()" [formGroup]="formGroup" novalidate> 
        <div class="blade-static __bottom" *ngIf="currentBlade.isNew">
          <button class="btn" type="submit" [disabled]="!formGroup.valid">创建</button>
        </div>
        <div class="form-group">
          <label class="form-label">键名称</label>
          <div class="form-input">
            <input id="keyCode" name="keyCode"  type="text"  placeholder="输入键名称" autocomplete="off" formControlName="keyCode">
          </div>
          <div *ngIf="formErrors.keyCode" class="form-error">
            {{ formErrors.keyCode }}
          </div>

        </div>
        <div class="form-group">
          <label class="form-label">描述</label>
          <div class="form-input">
            <textarea id="keyDesc" name="keyDesc" placeholder="输入键描述" class="form-control" formControlName="keyDesc" rows="4" cols="25"></textarea>
          </div>
          <div *ngIf="formErrors.keyDesc" class="form-error">
            {{ formErrors.keyDesc }}
          </div>
        </div>
      </form>
    </div>
  </div>
</div>